// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import api from './api'
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
import store from './vuex'
import moment from 'moment'
import './assets/js/highlight.pack'
import './assets/androidstudio.css'
moment.locale('zh-CN')
Vue.use(MuseUI)
Vue.config.productionTip = false
Vue.use(api)
Vue.directive('highlight', function (el) {
  let blocks = el.querySelectorAll('pre code')
  blocks.forEach((block) => {
    window.hljs.highlightBlock(block)
  })
})
/* eslint-disable no-new */
new Vue({
  store,
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
